package com.fjxd.user.service.impl;


import com.fjxd.user.mapper.UserMapper;
import com.fjxd.user.pojo.vo.MoneyVo;
import com.fjxd.user.service.MoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MoneyServiceImpl implements MoneyService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public MoneyVo getMoney(Integer id) {
        return userMapper.getMoney(id);
    }

    @Override
    public boolean addMoney(Integer id, double money) {
        return userMapper.addMoney(id,money);
    }

    @Override
    public boolean upMoney(Integer id, double money) {
        return userMapper.upMoney(id,money);
    }


}
